
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用来学习表单的重复提交的</title>

    <!-- 绝对路径 引入js -->
    <script type="text/javascript" src="js/jquery-1.7.2.js"></script>
    <script type="text/javascript">

        var test=function () {
            document.getElementById("code_img").setAttribute("src","http://localhost:8080/captcha.jpg");
        }


    </script>
</head>
<body>
    <form action="http://localhost:8080/client/RegisterController" method="get">

        <input id="btn1" type="button" onclick="test();" />
        用户名:<input type="text" name="username"> <br/>
         密码:<input type="password" name="password"><br/>
         验证码:<input type="text" name="code" />
         <img  onclick="test()" id="code_img" src="http://localhost:8080/captcha.jpg" alt="" style="width: 100px;height: 28px"/> <br/>
         <input type="submit" value="登陆">
    </form>



</body>
</html>
